<?php
define("ELEMENT_COUNT", 5);
$this->contentFile = "Product/ProductList";
$selectedPage = isset($_GET['page']) ? intval($_GET['page']) : 1;
$this->view->data = Product::listProducts(($selectedPage - 1)* ELEMENT_COUNT, ELEMENT_COUNT);
$this->view->selectedPage = $selectedPage;
$this->view->pageCount = 20;

?>
